package Common;

import java.util.Date;

public interface GlobalConst {

	/**
	 * for metadata
	 */
	final static int MAXDBNAME = 40 ; 
	final static int MAXNAME = 32; // length of relName, attrName
	final static int MAXSTRINGLEN = 255; // max. length of string attribute
	final static int NUMTUPLESFILE = 100; // default statistic = no recs in file
	final static int NUMPAGESFILE = 20; // default statistic = no pages in file
	final static int DISTINCTKEYS = 20; // default statistic: no of distinct keys
	final static int INDEXPAGES = 5; // default statisitc no of index pages
	final static int MINNUMVAL = 0;
	final static int MAXNUMVAL = 999999999;
	final static int PAGESIZE = (int)(1024)* 32; //
	final static int BUFFERPOOLSIZE = 1024;
	final static int TABLEELEMENTSIZE = 256;
	final static int MAXTABLENAMELENGTH= TABLEELEMENTSIZE-Long.SIZE;
	final static Date commondate=new Date();
	final static int INVALID=-1;
	final static int DATAINFOPAGESIZE = 12;
	
	
	/**
	 * HFPage format
	 */
	/**
	 * the location of how many slots in use
	 */
	final static int SLOT_CNT = 0;

	final static int SIZE_OF_SLOT = 4;

	final static int DPFIXED = 4 * 2 + 3 * 4;

	final static int USED_PTR = 2;

	final static int FREE_SPACE = 4;

	final static int TYPE = 6;

	final static int PREV_HFPAGE = 8;

	final static int NEXT_HFPAGE = 12;

	final static int CUR_HFPAGE = 16;
	
	public static final int MAX_DBNAME = 40 ; 
	public static final int INT_SIZE = 4; //bytes
	public static final int MAX_FRAME = (int)(1024) * 32 ; 
}
